import request from '@/utils/request'
//题库管理接口
export function testQuestionBankQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/testQuestionBank/query',
    params: data,
  })
}

export function testQuestionBankQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/testQuestionBank/query/' + id,
  })
}

export function testQuestionBankAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/testQuestionBank/add',
    data,
  })
}

export function testQuestionBankDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/testQuestionBank/delete/' + id,
  })
}

export function testQuestionBankUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/testQuestionBank/update',
    data,
  })
}
